/*
 * Copyright 2009-2012 . All rights reserved.
 */
package cn.sccl.common.exception;

public class MCException extends BusinessException {
    /**
     *
     */
    private static final long serialVersionUID = -286970098003544446L;

    private boolean isJson = false;

    private String[] args = null;


    public MCException() {
        super();
    }


    public MCException(String msg) {
        super(msg);
    }


    public MCException(Throwable cause) {
        super(cause);
    }


    public MCException(String msg, String[] args, Throwable cause) {
        super(msg, cause);
        this.args = args;
    }


    public MCException(String msg, Throwable cause) {
        super(msg, cause);
    }


    public MCException(String msg, String[] args) {
        super(msg);
        this.args = args;
    }


    public MCException(boolean isJson) {
        super();
        this.isJson = true;
    }


    public MCException(String msg, boolean isJson) {
        super(msg);
        this.isJson = true;
    }


    public MCException(Throwable cause, boolean isJson) {
        super(cause);
        this.isJson = true;
    }


    public MCException(String msg, String[] args, Throwable cause, boolean isJson) {
        super(msg, cause);
        this.args = args;
        this.isJson = true;
    }


    public MCException(String msg, Throwable cause, boolean isJson) {
        super(msg, cause);
        this.isJson = true;
    }


    public MCException(String msg, String[] args, boolean isJson) {
        super(msg);
        this.args = args;
        this.isJson = true;
    }


    /**
     * @return the args
     */
    public String[] getArgs() {
        return args;
    }


    /**
     * @return the isJson
     */
    public boolean isJson() {
        return isJson;
    }
}
